use strict;
use warnings;

package Contact::PersonEmailMap;

use base qw(My::DB::Object);

__PACKAGE__->meta->setup(
    table   => 'person_email_map',
    columns => [
        'id'        => { 'type' => 'serial', 'primary_key' => 1, 'not_null' => 1 },
        'person_id' => { 'type' => 'int',    'not_null'    => 1 },
        'email_id'  => { 'type' => 'int',    'not_null'    => 1 },
    ],
    relationships => [
        person => { type => 'many to one', class => 'Person',         column_map => { 'person_id' => 'id' }, },
        email  => { type => 'many to one', class => 'Contact::Email', column_map => { 'email_id'  => 'id' }, },
    ],
);

sub delete {
	die;
} 

1;
